﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using Code;

namespace Models {
    public class RoleInfo {
        [DisplayName("编号")]
        [List("", "", Width = 80)]
        public long Id { get; set; }

        /// <summary>
        /// 功能名称
        /// </summary>
        [Required, Column("Text", TypeName = "nvarchar(100)")]
        [DisplayName("角色名")]
        [List("", "", Width = 80)]
        public string Text { get; set; }

        /// <summary>
        /// 链接地址
        /// </summary>
        [Required, Column("ModuleIds", TypeName = "varchar(1000)")]
        public string ModuleIds { get; set; }
    }
}
